<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            width: 200px;
            height: 200px;
            background-color: pink;
        }
    </style>
</head>

<body>
    <div class="box">别点我</div>
    <button>暗流</button>
    <script>
        const btn = document.querySelector('button')
        let i = 0
        btn.addEventListener('click', () => {
            i++
            console.log(`点击了${i}次`);
        })
        const box = document.querySelector('.box')
        box.addEventListener('click', () => {
            console.log('我有别点击了 我丢');
        })
    </script>
</body>

</html>